package com.source.barcodeMachineGrantAndRecovery.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author IceBerg777
 * @since 2021-03-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "HouseMachine对象", description = "")
public class HouseMachine implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "屠宰市场id")
    @TableField("houseId")
    private String houseId;

    @ApiModelProperty(value = "脚标机编号")
    @TableField("machineNumber")
    private String machineNumber;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "createDate", fill = FieldFill.INSERT)
    private Date createDate;

    @ApiModelProperty(value = "纸质协议编号")
    @TableField("agreementNumber")
    private String agreementNumber;

    @ApiModelProperty(value = "发放时间")
    @TableField("grantDate")
    private Date grantDate;

    @ApiModelProperty(value = "发放人员id")
    @TableField("grantPersonId")
    private String grantPersonId;

    @ApiModelProperty(value = "价格")
    @TableField("price")
    private Double price;

    @ApiModelProperty(value = "出厂日期/发放日期")
    @TableField("productDate")
    private Date productDate;

    @ApiModelProperty(value = "接收人员id")
    @TableField("receivePersonId")
    private String receivePersonId;

    //    @ApiModelProperty(value = "状态（0租用，1销售）")
    @ApiModelProperty(value = "状态（0可用，1已发放，2维修，3报废）")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "协议具体内容")
    @TableField("protocol")
    private String protocol;

    @TableField("isDelete")
    @TableLogic
    private Integer isdelete;


}
